<?php
namespace app\test\controller;
use think\Db;

class Index
{
    public function index()
    {
 $teacher = Db::name('teacher')->select();
        echo $teacher[0]['name'];

    }
}
